<div class="bg-light lter b-b wrapper-md">
    <h4 class="m-n font-thin">在线充值流水管理</h4>
</div>
<div class="wrapper-md ng-scope" ng-controller="rechargeRecordCtrl">
    <div class="panel panel-default">
        <div class="row wrapper">
            <div class="col-sm-12">
                <form class="form-inline ng-pristine ng-valid">
                    <div class="form-group">
                        <label class="control-label">充值流水号</label>
                        <input type="text" class="input-sm form-control" ng-model="rechargeRecordVO.rechargeConfigureNumber" placeholder="流水号">
                    </div>
                    <div class="form-group">
                        <label class="control-label">充值用户</label>
                        <input type="text" class="input-sm form-control" ng-model="rechargeRecordVO.userName" placeholder="用户名称">
                    </div>
                    <div class="form-group">
                        <label class="control-label">充值方式</label>
                        <select class="input-sm form-control" ng-model="rechargeRecordVO.payWay">
                            <option value="">－－请选择－－</option>
                            <option value="0">微信</option>
                        </select>
                    </div>

                    <div class="form-group">
                        <label class="control-label">充值金额</label>
                        <input type="text" class="input-sm form-control" ng-model="rechargeRecordVO.rechargeMoney" placeholder="充值金额">
                    </div>
                    <div class="form-group">
                        <label class="control-label">赠送类型</label>
                        <select class="input-sm form-control" ng-model="rechargeRecordVO.giveType">
                            <option value="">－－请选择－－</option>
                            <option value="1">金额</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label class="control-label">赠送值</label>
                        <input type="text" class="input-sm form-control" ng-model="rechargeRecordVO.giveValue" placeholder="赠送值">
                    </div>
                    <div class="form-group">
                        <label class="control-label">状态</label>
                        <select class="input-sm form-control" ng-model="rechargeRecordVO.status">
                            <option value="">－－请选择－－</option>
                            <option value="0">未支付</option>
                            <option value="1">已支付</option>
                        </select>
                    </div>
                    <div class="block m-t-sm">
                        <label class="control-label">充值日期</label>
                        <div class="input-group inline" ng-controller="DatepickerDemoCtrl">
                            <div class="input-group  no-padder m-n w-lg">
                                <input type="text" class="input-sm form-control" placeholder="请选择开始日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd"
                                    ng-model="rechargeRecordVO.startTime" alt-input-formats="altInputFormats" is-open="opened"
                                    datepicker-options="dateOptions" close-text="关闭" clear-text="清空" current-text="今天" disabled/>
                                <span class="input-group-btn ">
                                    <button type="button" class="input-sm btn btn-default" ng-click="open($event)">
                                        <i class="glyphicon glyphicon-calendar"></i>
                                    </button>
                                </span>
                            </div>
                        </div>
                        <div class="input-group inline" ng-controller="DatepickerDemoCtrl">
                            <div class="input-group  no-padder m-n w-lg">
                                <input type="text" class="input-sm form-control" placeholder="请输入结束日期" uib-datepicker-popup="yyyy-MM-dd" datepicker-popup="yyyy-MM-dd"
                                    ng-model="rechargeRecordVO.endTime" alt-input-formats="altInputFormats" is-open="opened" datepicker-options="dateOptions"
                                    close-text="关闭" clear-text="清空" current-text="今天" min-date="rechargeRecordVO.startTime" disabled/>
                                <span class="input-group-btn ">
                                    <button type="button" class="input-sm btn btn-default" ng-click="open($event)">
                                        <i class="glyphicon glyphicon-calendar"></i>
                                    </button>
                                </span>
                            </div>
                        </div>
                        <button class="btn btn-sm btn-default" ng-click="query()">查询</button>
                    </div>
                </form>
            </div>

            <div class="clearfix"></div>
        </div>
        <div class="table-responsive">
            <table class="table table-striped b-t b-light">
                <thead>
                    <tr>
                        <th>充值流水号</th>
                        <th>充值用户</th>
                        <th>充值方式</th>
                        <th>充值金额</th>
                        <th>赠送</th>
                        <th>赠送值</th>
                        <th>充值时间</th>
                        <th>状态</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="item in list">
                        <td>{{item.orderNumber}}</td>
                        <td>{{item.userName}}</td>
                        <td>
                            <span ng-if="item.payWay == 0">微信支付</span>
                            <span class="badge bg-success ng-scope" ng-if="item.payWay == -1">系统赠送</span>
                        </td>
                        <td>{{item.rechargeMoney}}元</td>
                        <td>
                            <span class="badge bg-success ng-scope" ng-if="item.payWay == -1">系统充值赠送

                            </span>
                            <span  ng-if="item.payWay != -1">
                                <span ng-if="item.giveType == 1">赠送金额</span>
                            </span>
                        </td>
                        <td>
                            <span class="badge bg-success ng-scope" ng-if="item.payWay == -1">系统充值赠送

                             </span>
                            <span  ng-if="item.payWay != -1">
                                <span ng-if="item.giveType == 1">
                                    <span ng-if="item.giveValue == null || item.giveValue == undefined">无</span>
                                    <span ng-if="item.giveValue != null">{{item.giveValue}}元</span>
                                </span>
                             </span>
                            
                        </td>
                        <td>{{item.createdTime}}</td>
                        <td>
                            <span class="badge bg-danger ng-scope" ng-if="item.status == 0">未支付</span>
                            <span class="badge bg-success ng-scope" ng-if="item.status == 1">已支付</span>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <footer class="panel-footer">
            <div class="row">
                <div class="col-sm-offset-4 col-sm-4 text-center">
                    <small class="text-muted inline m-t-sm m-b-sm">显示第 {{startRow}} 至 {{endRow}} 项结果，共 {{totalItems}} 项</small>
                </div>
                <div class="col-sm-4 text-right text-center-xs">
                    <pagination boundary-links="true" total-items="totalItems" ng-model="currentPage" ng-change="pageChanged()" max-size="{{maxPageRow}}"
                        class="pagination-sm m-t-none m-b" previous-text="上一页" next-text="下一页" first-text="首页" last-text="尾页"></pagination>
                </div>
            </div>
        </footer>
    </div>
</div>